#!/usr/bin/env ruby -wKU
#encoding: utf-8

# this would take a long time... sucks
# start_time = Time.now
# require 'backend/notification_mail/notification_mail'
# elapsed = Time.now - start_time
# puts "take #{elapsed} to load notification_mail"

require 'backend/crawler/crawler'
crawler = Crawler::WebCrawler.new

require 'backend/data/data_processor'
DB_VTB::DataProcessor.new crawler

thread = crawler.crawl
thread.join

# threads = []
# threads << thread
# 
# require 'thwait'
# ThreadsWait.all_waits(*threads)
